package com.aiti.lulian.mapper.newCard;

import com.aiti.lulian.entity.newCard.CardEnterpriseComponent;
import com.aiti.lulian.entity.newCard.CardVideoInfo;
import com.aiti.lulian.vo.newCard.ComponentFileVo;
import com.aiti.lulian.vo.newCard.EnterpriseMaterialVo;
import com.aiti.lulian.vo.newCard.EnterpriseProductVo;
import com.aiti.lulian.vo.newCard.EnterpriseServiceVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CardEnterpriseComponentMapper extends BaseMapper<CardEnterpriseComponent> {

    List<CardEnterpriseComponent> queryCardEnterpriseComponentList(@Param("templateId") String templateId);

    List<EnterpriseProductVo> queryEnterpriseProductList(@Param("enterpriseId") String enterpriseId);

    List<EnterpriseProductVo> queryProductList(@Param("productIdList") List<String> productIdList);

    List<EnterpriseServiceVo> queryEnterpriseServiceList(@Param("enterpriseId") String enterpriseId);

    List<EnterpriseServiceVo> queryServiceList(@Param("serviceIdList") List<String> serviceIdList);

    List<ComponentFileVo> queryComponentFileList(@Param("fileIdList") List<String> fileIdList);

    List<EnterpriseMaterialVo> queryEnterpriseMaterialList(@Param("enterpriseId") String enterpriseId);

    List<EnterpriseMaterialVo> queryEnterpriseMaterialInfoList(@Param("materialIdList") List<String> materialIdList);

    List<CardVideoInfo> queryVideoInfoList(@Param("videoIdList") List<String> videoIdList);

    void deleteByTemplateId(@Param("templateId") String templateId);
}
